\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{prezentare}
[2010/28/06 v1.0  Model pentru prezentarea de licenta]

% toate optiunile sunt trimise clasei de baza
\def\baseclass{beamer}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{\baseclass}}

% se verifica optiunea de dimensiune a font-ului
\def\@checkoptions#1#2{
  \edef\@curroptions{\@ptionlist{\@currname.\@currext}}
  \@tempswafalse
  \@tfor\@this:=#2\do{
    \@expandtwoargs\in@{,\@this,}{,\@curroptions,}
    \ifin@ \@tempswatrue \@break@tfor \fi}
  \let\@this\@empty
  \if@tempswa \else \PassOptionsToClass{#1}{\baseclass}\fi
}
\@checkoptions{11pt}{{10pt}{11pt}{12pt}}

% no page numbers
\PassOptionsToClass{hyperref={pdfpagelabels=false}}{\baseclass}

% se incarca clasa si se proceseaza optiunile
\ProcessOptions\relax
\LoadClass{\baseclass}

% data in romana
\def\today{ \number\day\space \ifcase\month\or
  Ianuarie\or Februarie\or Martie\or Aprilie\or Mai\or Iunie\or
  Iulie\or August\or Septembrie\or Octombrie\or Noiembrie\or Decembrie\fi
  \space \number\year}

% formule matematice
\usepackage{amsthm,amsmath}
\newtheorem{thm}{Teorem\u a}[section]

\usepackage{bussproofs}
% Times new roman
\usepackage{times}
% Pachete pentru grafice si diagrame
\usepackage{tikz}
\usetikzlibrary{arrows,shapes,fit}
\usepackage{graphicx}

\usepackage{ulem} % cuvinte "taiate"

\usepackage{listings}
% definitia sintaxei si stilului pentru TBT
\lstdefinelanguage{TBT} {
    morekeywords={let, fn, letrec, case, of, Inductive},
    sensitive=true,
    morecomment=[l]{--},
    morecomment=[n]{(*}{*)},
    moredelim=[is][commentstyle]{|}{|},
    numbers=none,
    numberstyle=\scriptsize,%\small,
    numberblanklines=true,
}

\lstdefinestyle{tbt}{
    keywordstyle=\color[rgb]{0.41,0.20,0.04}\bfseries,
    commentstyle=\color[gray]{0.55},
    basicstyle=\scriptsize, %\small,
    keepspaces=true,
    aboveskip=\smallskipamount,
    belowskip=\smallskipamount,
}
\lstset{
        language=TBT,
        style=tbt,
}

\renewcommand{\lstlistingname}{Program}
\usepackage{verbatim}


\mode<presentation>
{
    \usetheme{Copenhagen}
    \usecolortheme{whale}
}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{blocks}[rounded][shadow=true]


